/**
 * 
 */
package com.jbat.gwt.tiledmapcreator.client.common.color;

/**
 * Represents a Color type.
 * <p>
 * Because colors in GWT are represented by strings, this is an attempt to lend some structure to
 * the color creation process. Every color must implement a method getRgbString() which will 
 * standardize the way in which colors are sent to the view components that must display them. *
 */
public interface Color {
  
  /**
   * Converts a color to its RGB value.
   * <p>
   * This method must return a string of the form "rgb(#, #, #)" where # can be any int value from
   * 0-255 inclusive. The first number is the value representing the red value, the second value
   * represents the green value, and the last represents the blue value
   * 
   * @return a string representation of an RGB color value, described above.
   */
  String getRgbString();

}
